<template>
    <div class="index">
        <transition name="fade" mode="out-in">
        <router-view></router-view>
        </transition>
        <div class="tabbar">
            <router-link to="/index/home" >首页</router-link>
            <router-link to="/index/baobao" >爆爆团</router-link>
            <router-link to="/index/order">订单</router-link>
            <router-link to="/index/mine">我的</router-link>
        </div>
    </div>
</template>

<script>
export default {

}
</script>

<style lang='scss' scoped>
.tabbar{
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: fixed;
  bottom: 0;
  width: 100%;
  padding: 10px 0;
  border-top: 1px solid #ccc;
  background-color: #f5f5f5;
}
.fade-enter {
  transform: scale(0) rotate(0deg);
}
.fade-enter-active {
  transition: all 0.5s;
}
.fade-enter-to {
  transform: scale(1) rotate(360deg);
}

.fade-leave {
  transform: scale(1) rotate(360deg);
}
.fade-leave-active {
  transition: all 0.5s;
}
.fade-leave-to {
  transform: scale(0) rotate(0deg);
}

</style>